﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LProvince : WProvince
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String areaName;
        public String AreaName
        {
            get
            {
                return areaName;
            }
            set
            {
                areaName = value;
                RaisePropertyChanged("AreaName");
            }
        }

        private String areaSelected;
        public String AreaSelected
        {
            get
            {
                return areaSelected;
            }

            set
            {
                areaSelected = value;
                RaisePropertyChanged("AreaSelected");
            }
        }

        private ObservableCollection<String> areas = new ObservableCollection<String>();
        public ObservableCollection<String> Areas
        {
            get
            {
                return areas;
            }

            set
            {
                areas = value;
                RaisePropertyChanged("Areas");
            }
        }

        public LProvince()
        {
            IsChoose = false;
            ProvinceUID = -1;
            ProvinceName = "";
            PersonnelUID = -1;
            AreaUID = -1;
            AreaSelected = AreaName;
            Person = new WPersonnel();
        }
    }
}
